//package com.ktjy.task;
//
//import com.ktjy.service.impl.EmailService;
//import jakarta.annotation.Resource;
//import jakarta.mail.MessagingException;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//@Component
//public class MyTask {
//    @Resource
//    EmailService emailService;
////    @Scheduled(cron = "0/5 * * * * ?")
//    public void test1() {
//        try {
//            emailService.sendEmail("2164681179@qq.com", "161361728@qq.com", "测试发送邮箱", "aaa", "180612742@qq.com");
//            System.out.println(1);
//        } catch (MessagingException e) {
//            throw new RuntimeException(e);
//        }
//    }
//}